Fluent Assertions Documentation
FluentAssertions.Collections Namespace / GenericCollectionAssertions<TCollection,T,TAssertions> Class / SatisfyRespectively Method / SatisfyRespectively(Action<T>[]) Method
The element inspectors, which inspect each element in turn. The total number of element inspectors must exactly match the number of elements in the collection.
In This Topic
    SatisfyRespectively(Action<T>[]) Method
    In This Topic
    Asserts that a collection contains exactly a given number of elements, which meet the criteria provided by the element inspectors.
    Syntax
    public AndConstraint<TAssertions> SatisfyRespectively( 
       params Action<T>[] elementInspectors
    )

    Parameters

    elementInspectors
    The element inspectors, which inspect each element in turn. The total number of element inspectors must exactly match the number of elements in the collection.
    Exceptions
    ExceptionDescription
    elementInspectors is a null reference (Nothing in Visual Basic).
    elementInspectors is empty.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also